<?php include("../Service/WebClass/member/SiteEditDetailClass.php");
	session_start();
	$siteEditDetail = new SiteEditDetail;
	$siteEditDetail->mytask(); 
	
	if($_SESSION["memberId"] == null || $_SESSION["memberId"] == "")
	{
		header("Location:../login.php");
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>サイト編集画面</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script language="javascript" src="../js/common.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>

<link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#F4FFE4">
<?php include("../head.php") ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>
    <td width="165" valign="top" bgcolor="#5C743D"><?php include("../menu.php");?></td>
    <td width="813" colspan="2" align="center" >
    <br />
    <form name="inputform" id="inputform" method="post">
	<?php
		echo "<input type=hidden name=act value=submit>";	
    ?>
    <?php
    if($siteEditDetail->message != null && $siteEditDetail->message != "")
		echo "<font id=message name=message color=red>".$siteEditDetail->message."</font>";
    ?>    
    <table class="tbl" width="80%" border="0" cellpadding="4" cellspacing="0">
      <tbody><tr>
			<td class="td9" width="129" align="left"><span class="subHeader">サイト名</span></td>
			<td width="318" class="td4 left"><span id="sprytextfield2">
			  <input name="siteName" type="text" maxlength="255" class="txBox" id="loginid" value=<?php echo $siteEditDetail->siteName?>></input>
			  <span class="textfieldRequiredMsg">サイト名を入力してください。</span></span></td>
		</tr>
        <tr>
			<td class="td9 top"><span class="subHeader">サイトURL</span></td>
			<td class="td4 border"><span id="sprytextfield5">
            <input name="siteUrl" size="60" maxlength="100" class="txBox" type="text" value=<?php echo $siteEditDetail->siteUrl?>></input>
            <span class="textfieldRequiredMsg">サイトURL入力してください。</span><span class="textfieldInvalidFormatMsg">フォーマットは不正</span></span></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">サイト内容</span></td>
			<td class="td4 border"><textarea name="content" maxlength= 255 cols="50" rows="2" class="txBox"><?php echo $siteEditDetail->content?></textarea></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">ジャンル</span></td>
			<td class="td4 border"><select name="genreId">
			  <?php echo $siteEditDetail->genreIdList;?>
			</select></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">月間ページビュー</span></td>
			<td class="td4 border"><span id="sprytextfield3">
			  <input name="pageView" type="text" maxlength="10" class="txBox" id="textfield" value="<?php echo $siteEditDetail->pageView?>" />
			  <span class="textfieldInvalidFormatMsg">整数を入力してください。</span><span class="textfieldRequiredMsg">月間ページビューを入力してください。</span></span></td>
		</tr>
         <tr>
			<td class="td9 top"><span class="subHeader">月間ユニークユーザー</span></td>
			<td class="td4 border"><span id="sprytextfield4">
            <input name="uniqueUser" type="text" maxlength="10" class="txBox" id="textfield2" value="<?php echo $siteEditDetail->uniqueUser?>" />
            <span class="textfieldInvalidFormatMsg">整数を入力してください。</span><span class="textfieldRequiredMsg">月間ユニークユーザーを入力してください。</span></span></td>
		</tr>
        <tr>
          <td class="td4 border"　align="center" colspan="2"><div align="center">

            <input type="submit" class="navText" value="保存"/>
            
          </div></td>
        </tr>
	</tbody>
    </table>
    </form>
    <br />
    </td>

  </tr>
   </table>

<script type="text/javascript">


var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "integer");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield5", "url");
//-->
</script>
<?php include("../foot.php");?> 
</body>
</html>